<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>

  <script src="jquery-3.7.1.min.js"></script>
  <!--  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>-->

</head>
<body>

<p style="display: none;">这个段落是隐藏的。</p>
<p>这个段落是可见的。</p>

<script>

  // $("p:visible").css("background",'pink');
  $("p:hidden").css('color', 'red');
</script>
</body>
</html>
